﻿

<!-- /PAGE HEADER -->
<!-- FORMS -->
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-6">
    <!-- BASIC -->
    <div class="box border orange">
        <div class="box-title">
            <h4><i class="fa fa-bars"></i>新闻添加</h4>
            <div class="tools hidden-xs">
                <a href="#box-config" data-toggle="modal" class="config">
                    <i class="fa fa-cog"></i>
                </a>
                <a href="javascript:;" class="reload">
                    <i class="fa fa-refresh"></i>
                </a>
                <a href="javascript:;" class="collapse">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a href="javascript:;" class="remove">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
        <div class="box-body big">




            <form class="form-horizontal" action="" method="post" role="form"  enctype="multipart/form-data">


              <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">分类名称</label>
                <div class="col-sm-10">
                  <input type="text" name="name" value="<?php echo $date['name']?>" class="form-control" id="inputPassword3" placeholder="请输入标题">
                </div>
              </div>

              <div class="form-group">
                <label for="inputPassword2" class="col-sm-2 control-label">分类归属</label>
                <div class="col-sm-2 list">

                <?php foreach($cate as $k=>$v){?>
                  <select class="form-control select_cate"  name="pid">

                        <option value="0">顶级分类</option>
                       <?php foreach($v as $vv){?>
                       <option <?php echo ($vv['id']==$k)?'selected':''?>
                       value="<?php echo $v['id']?>"><?php echo $vv['name']?></option>
                       <?php }?>
                      </select>
                      <?php }?>
                </div>
              </div>

              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="submit" class="btn btn-pink">提交</button>
                </div>
              </div>
            </form>

        </div>
    </div>
    <!-- /BASIC -->
    <!-- BASIC -->
<script src="resources/admin/js/jquery/jquery-2.0.3.min.js""></script>
<script type="text/javascript">
$(function(){

})


</script>

